package com.netscenery.util;

public final class XMLTag {
	public static final String XML_TAG_MODULE = "module";
	public static final String XML_TAG_SUBMODULE = "submodule";
	public static final String XML_TAG_TYPEDEF = "typedef";
	public static final String XML_TAG_TYPE = "type";
	public static final String XML_TAG_INCLUDE = "include";
	public static final String XML_TAG_IMPORT = "import";
	public static final String XML_TAG_REVISIONDATE = "revisionDate";
	public static final String XML_TAG_PREFIX = "prefix";
	public static final String XML_TAG_NAMESPACE = "namespace";
	public static final String XML_TAG_DESCRIPTION = "description";
	public static final String XML_TAG_NATIVEDESCR = "nativeDescr";
	public static final String XML_TAG_REFERENCE = "reference";
	public static final String XML_TAG_CONTACT = "contact";
	public static final String XML_TAG_ORGANIZATION = "organization";
	public static final String XML_TAG_REVISION = "revision";
	public static final String XML_TAG_BIT = "bit";
	public static final String XML_TAG_NAME = "name";
	public static final String XML_TAG_POSITION = "position";
	public static final String XML_TAG_STATUS = "status";
	public static final String XML_TAG_UNITS = "unit";
	public static final String XML_TAG_DEFAULT = "default";
	public static final String XML_TAG_ENUM = "enum";
	public static final String XML_TAG_VALUE = "value";
	public static final String XML_TAG_BELONGSTO = "belongsTo";
	public static final String XML_TAG_BASETYPE = "baseType";
	public static final String XML_TAG_DERIVEDTYPE = "derivedType";
	public static final String XML_TAG_PATTERN = "pattern";
	public static final String XML_TAG_REGSTR = "regularString";
	public static final String XML_TAG_LENGTH = "length";
	public static final String XML_TAG_RANGE = "range";
	public static final String XML_TAG_MIN = "min";
	public static final String XML_TAG_MAX = "max";
	public static final String XML_TAG_NODE = "node";
	public static final String XML_TAG_CONTAINER = "container";
	public static final String XML_TAG_CHOICE = "choice";
	public static final String XML_TAG_CASE = "case";
	public static final String XML_TAG_LEAF = "leaf";
	public static final String XML_TAG_LEAFLIST = "leaflist";
	public static final String XML_TAG_LIST = "list";
	public static final String XML_TAG_CONFIG = "config";
	public static final String XML_TAG_PRESENCE = "presence";
	public static final String XML_TAG_MANDATORY = "mandatory";
	public static final String XML_TAG_KEYS = "keys";
	public static final String XML_TAG_KEY = "key";
	public static final String XML_TAG_UNIQUES = "uniques";
	public static final String XML_TAG_UNIQUE = "unique";
	
	public static final String XML_TAG_MAXELEMENTS = "maxElements";
	public static final String XML_TAG_MINELEMENTS = "minElements";
	public static final String XML_TAG_EXTENSION = "extension";
	public static final String XML_TAG_ARGUMENT = "argument";
	public static final String XML_TAG_PATH = "path";
	public static final String XML_TAG_FEATURE = "feature";
	public static final String XML_TAG_IFFEATURE = "if-feature";
	//public static final String XML_TAG_MIMINFO = "miminfo";
	//public static final String XML_TAG_MAP = "map";
	//public static final String XML_TAG_VALUEMAP = "valuemap";
	//public static final String XML_TAG_ACTION = "action";
	//public static final String XML_TAG_KEYREF = "keyref";
	public static final String XML_TAG_ELEMENT = "element";
	//public static final String XML_TAG_SELECT = "select";
	public static final String XML_TAG_FIELD = "field";
	//public static final String XML_TAG_OBJID = "objectID";
	//public static final String XML_TAG_ATTRID = "attributeID";
	//public static final String XML_TAG_DATATYPE = "datatype";
	//public static final String XML_TAG_MIMVALUE = "mimvalue";
	public static final String XML_TAG_URI = "uri";
	public static final String XML_TAG_TEXT = "text";
	public static final String XML_TAG_TAG = "tag";
	public static final String XML_TAG_DEVIATION = "deviation";
	public static final String XML_TAG_DEVIATE = "deviate";
	public static final String[] keywords = {
		XML_TAG_MODULE,
		XML_TAG_SUBMODULE,
		XML_TAG_TYPEDEF,
		XML_TAG_TYPE,
		XML_TAG_INCLUDE,
		XML_TAG_IMPORT,
		XML_TAG_REVISIONDATE,
		XML_TAG_PREFIX,
		XML_TAG_NAMESPACE,	
		XML_TAG_DESCRIPTION,
		XML_TAG_NATIVEDESCR,
		XML_TAG_REFERENCE,
		XML_TAG_CONTACT,
		XML_TAG_ORGANIZATION,
		XML_TAG_REVISION,
		XML_TAG_BIT,
		XML_TAG_POSITION,
		XML_TAG_STATUS,
		XML_TAG_UNITS,
		XML_TAG_DEFAULT,
		XML_TAG_ENUM,
		XML_TAG_VALUE,
		XML_TAG_BELONGSTO,
		XML_TAG_PATTERN,
		XML_TAG_LENGTH,
		XML_TAG_RANGE,
		XML_TAG_NODE,
		XML_TAG_CONFIG,
		XML_TAG_PRESENCE,
		XML_TAG_MANDATORY,
		XML_TAG_KEYS,
		XML_TAG_UNIQUES,
		XML_TAG_MAXELEMENTS,
		XML_TAG_MINELEMENTS,
		XML_TAG_EXTENSION,
		XML_TAG_FEATURE,
		XML_TAG_ARGUMENT,
		XML_TAG_IFFEATURE,
		//XML_TAG_MIMINFO,
		//XML_TAG_MAP,
		//XML_TAG_ACTION,
		//XML_TAG_KEYREF,
		XML_TAG_ELEMENT,
		//XML_TAG_VALUEMAP,
		XML_TAG_PATH,
		XML_TAG_DEVIATION,
		XML_TAG_DEVIATE
	};
	public static boolean isKeyword(String keyword){
		int size = keywords.length;
		for (int i=0;i<size;i++){
			String keywordtmp = keywords[i];
			if (keywordtmp.equals(keyword)){
				return true;
			}
		}
		
		return false;
	}
}
